/*
 * @lc app=leetcode.cn id=344 lang=csharp
 *
 * [344] 反转字符串
 */

// @lc code=start
public class Solution {
    public void ReverseString(char[] s) {
        char temp;
        var len = s.Length;
        for(int i = 0; i < len / 2; ++i)
        {
            temp = s[i];
            s[i] = s[len-i-1];
            s[len-i-1] = temp;
        }
    }
}
// @lc code=end

